From: Marco Trevisan (TreviƱo) Date: Mon, 28 Mar 2022 13:25:41 +0000 (+0200) Subject: shellDBus: Actually make ScreenTransitionAsync async X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~57 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8ba7f0f4a902439f87c7c9c887b385f9fa85384f;p=gnome-shell.git shellDBus: Actually make ScreenTransitionAsync async We called such function async but we didn't awaited for the checkInvocation result in the proper way. So on failure the shell would report an unhandled promise rejection. Part-of: --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 8faa112ea..edc16eb87 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -253,9 +253,9 @@ var GnomeShell = class { invocation.return_value(GLib.Variant.new('(b)', [ungrabSucceeded])); } - ScreenTransitionAsync(params, invocation) { + async ScreenTransitionAsync(params, invocation) { try { - this._senderChecker.checkInvocation(invocation); + await this._senderChecker.checkInvocation(invocation); } catch (e) { invocation.return_gerror(e); return;